﻿#region using
using Microsoft.Xna.Framework;
#endregion

namespace AwesomeTanks.Sources.GameElements.MapElements
{
    /// <summary>
    /// The model of a Spawn Point in AwesomeTanks. A Tank can only spawn in a Spawn Point
    /// </summary>
    public class SpawnPoint
    {
        #region Fields
        public Vector2 SpawnPosition { get; set; }
        public PlayerIndex IndexPlayerSpawn { get; set; }
        #endregion

        #region Constructors
        /// <summary>
        /// Initializes a new instance of the <see cref="SpawnPoint"/> class.
        /// </summary>
        /// <param name="position">The position.</param>
        /// <param name="index">The index.</param>
        public SpawnPoint(Vector2 position, PlayerIndex index)
        {
            SpawnPosition = position;
            IndexPlayerSpawn = index;
        }
        #endregion
    }
}
